package cn.zhukelili.generic;

/**
 * @Description: 调用者Invoker类
 * @Auther: hongheshou
 * @Date: 2018/7/17 17:32
 */
public class Invoker {
    private Command command;

    //受气包，接受命令
    public void setCommand(Command _command) {
        this.command = _command;
    }

    //执行命令
    public void action() {
        this.command.execute();
    }
}
